package cn.bravolinks.tools.controller;

import org.springframework.web.bind.annotation.ModelAttribute;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * Created by yanqin on 2017/6/4.
 */
public class BaseController {

    public HttpServletRequest request;
    public HttpServletResponse response;
    public HttpSession session;

    @ModelAttribute
    public void initServlet(HttpServletRequest request,HttpServletResponse response,HttpSession session){
        this.session= session;
        this.request  = request;
        this.response = response;
    }
}
